import { Column, Entity, ObjectID, ObjectIdColumn } from "typeorm";

@Entity()
export class Courses {
  @ObjectIdColumn()
  id: ObjectID;

  @Column()
  course_name: string;

  @Column()
  teacher_name: string;

  @Column()
  teacher_id: string;

  @Column()
  credit: number;

  @Column()
  time_1: number;

  @Column()
  time_2: number

  @Column()
  location: string;

  @Column()
  college_name: string;

  @Column()
  major_name: string;

  @Column()
  lesson_period: number;

  @Column()
  num_limit: number;

  @Column()
  remaining: number;

  @Column()
  state: boolean;

  @Column()
  type: number;

  @Column()
  choose_limit: number;
}